/**
 * 实现Runnable接口的类
 * 
 * @author leizhimin 2008-9-13 18:12:10
 */
public class DoSomething implements Runnable {
	private String name;
	private boolean flag = true;
	private String str;

	public String getStr() {
		return str;
	}

	public void setStr(String str) {
		this.str = str;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public DoSomething(String name) {
		this.name = name;
	}

	public void run() {
		while (flag) {
			for (int i = 0; i < 100; i++) {
				this.str = "第几个 + " + i;
			}
		}
	}
}